
#include <stdio.h>
#include <string.h>

int snprintf_test()
{
    char c[100] = {0};
    char *a = "aaaaaaaaaaaaaaaaaaaaaaa";
    char *b = "bbb";
    snprintf(c, 100, "%s", a);
    printf("%s\n", c);
    snprintf(c, 100, "%s", b);
    printf("%s strlen: %d \n", c, strlen(c));
    return 0;
}

int main()
{
    snprintf_test();
}